<?php 

namespace Admin\Controller;
use Admin\Controller\BaseController;

/**
 * 字段管理控制器
 * @author 艾逗笔<765532665@qq.com>
 */
class AttributeController extends BaseController {

	/**
	 * 初始化
	 * @author 艾逗笔<765532665@qq.com>
	 */
	public function _initialize() {
		$res['title'] = '字段列表';
		$res['url'] = U('lists');
		$res['class'] = ACTION_NAME == 'lists' ? 'active' : '';
		$nav[] = $res;

		$res['title'] = '新增字段';
		$res['url'] = U('add');
		$res['class'] = ACTION_NAME == 'add' ? 'active' : 'hide';
		$nav[] = $res;

		$this->assign('nav', $nav);
	}

	/**
	 * 字段列表
	 * @author 艾逗笔<765532665@qq.com>
	 */
	public function lists() {
		$this->display();
	}

	/**
	 * 新增字段
	 * @author 艾逗笔<765532665@qq.com>
	 */
	public function add() {
		$this->display();
	}
}


?>